package com.manage.system.api.request.oss;

import com.manage.common.core.valid.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class StorageAddOrEditParam {
    @NotNull(message = "对象存储配置id不能为空", groups = {UpdateGroup.class})
    private Long id;
    @ApiModelProperty(value = "配置名称")
    private String configName;
    @ApiModelProperty(value = "配置Code")
    private String configCode;
    @ApiModelProperty(value = "存储类型(1:七牛 2:腾讯 3:阿里)")
    private String type;
    @ApiModelProperty(value = "状态(0:禁用 1:启用)")
    private Boolean status;
    @ApiModelProperty(value = "域名")
    private String domain;
    @ApiModelProperty(value = "前缀")
    private String prefix;
    @ApiModelProperty(value = "存储桶")
    private String bucketName;
    @ApiModelProperty(value = "access_Key")
    private String accessKey;
    @ApiModelProperty(value = "secret_key")
    private String secretKey;
    @ApiModelProperty(value = "终端")
    private String endPoint;
    @ApiModelProperty(value = "地区")
    private String region;
    @ApiModelProperty(value = "备注")
    private String remark;
}
